<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>display-float-position的区别</title>
    <style>
        /* 
            display 优先级最高
            position 其次
            float    最后
        
        
         */
        .box{
           float: left;
            position: absolute;
            right: 0;top: 0;
            border: 1px solid red;
        }
    </style>
</head>
<body>
    <div class="box">
        <div>设置的内容</div>
    </div>
</body>
</html>